package com.file.xml.read;

import com.file.xml.pojo.Xml;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@XmlRootElement(name = "xmls")
@XmlAccessorType(XmlAccessType.FIELD)
public class ReaderXml {

    // @XmlElement表示字段映射的Xml中的元素

    @XmlElement(name = "xml")
    private List<Xml> xmlLst;
}
